﻿@model TS2015.Models.TbSlide[]

@*<div class="col-lg-3 col-md-3 menu-slide">
    <div class="row" style="font-size:12px">
        <a style="text-align:center" href="@Url.Action("PhieuDK")">
            ĐĂNG KÝ ĐẠI HỌC/ CAO ĐẲNG CHÍNH QUY
        </a>
        <a href="http://epu.edu.vn/Default.aspx?NT=dao-tao">
            CHƯƠNG TRÌNH ĐÀO TẠO
        </a>
        <a href="#">
            CHƯƠNG TRÌNH CHẤT LƯỢNG CAO
        </a>
    </div>
</div>*@
<div class="col-md-12">
    <div class="row">
        <div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
            @if (Model.Count() > 0)
            {
                <!-- Indicators -->
                <ol class="carousel-indicators">
                    @for (int i = 0; i < Model.Count(); i++)
                    {
                        <li data-target="#carousel-example-generic" data-slide-to="@i" class="@(i == 0 ? "active" : "")"></li>
                    }
                </ol>
                <!-- Wrapper for slides -->
                <div class="carousel-inner">
                    @for (int i = 0; i < Model.Count(); i++)
                    {
                        <div class="item @(i == 0 ? "active" : "")">
                            <img src="~/Uploads/Slide/@Model[i].Anh" class="img-responsive" style="width:100%;max-height:300px"/>
                        </div>
                    }
                </div>
            }
            <!-- Controls -->
            <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
                <span class="glyphicon glyphicon-chevron-left"></span>
            </a>
            <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
                <span class="glyphicon glyphicon-chevron-right"></span>
            </a>
        </div>

    </div>
</div>

